Fix gestures test
authorAlexander Larsson <alexl@redhat.com>
Mon, 10 Feb 2020 15:24:03 +0000 (16:24 +0100)
committerAlexander Larsson <alexl@redhat.com>
Mon, 10 Feb 2020 15:24:03 +0000 (16:24 +0100)
commit7d23b6dad506ee19f4e37d6d3ccb50e8e915e059
tree65ee9ac3ee51e710435f78b97cdaeee9a4270ebc
parente5e7dbf2a5cc5896a873967ebedb00ad485a47cf
Fix gestures test

This tests was testing gestures by faking an event in the
middle of a window that has a hbox with an expanding image in it.
For me (and I guess this depends on all sorts of issues like whether
CSD is enabled, font sizes, etc) the hbox ended up centered horizontally
but not vertically (probably because of csd at the top), so no events
ever hit the inner widgets.

This is fixed by emitting the events at allocation.x/y of the
hbox, which should contain both the hbox and the image (as it expands).
testsuite/gtk/gestures.c